import { PlusOutlined } from "@ant-design/icons";
import React from "react";

import styles from './style.less'


export type AddControlProps = {
  onAdd: () => void
}


/**
 * 新增控制
 * @param props 
 * @returns 
 */
export function AddControl(props: AddControlProps) {

  return (
    <div className={styles.addControl} onClick={props.onAdd}>
      <PlusOutlined />
    </div>
  )
}